<%--
  Created by IntelliJ IDEA.
  User: b
  Date: 2019/10/12
  Time: 20:51
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
密码修改成功<br>
<span id="time">3</span>秒后请重新登录
<script type="text/javascript">
    //定义一个变量为5
    var count = 3;
// 一开始就执行
    window.setInterval("refresh()", 1000);
    function refresh() {
        if (count > 1 ) {
        //修改span中的数字
        document.getElementById("time").innerText =--count;
        }else {
            location.href = "/login.jsp";
        }
    }
</script>
</body>
</html>
